//
//  YuYueSureOrderBottomView.m
//  FD
//
//  Created by xiaofang wang on 2018/11/9.
//  Copyright © 2018年 ZhiYuan Network. All rights reserved.
//

#import "YuYueSureOrderBottomView.h"
@interface YuYueSureOrderBottomView()
@property (weak, nonatomic) IBOutlet UILabel *redPriceLb; /**红色价格lb*/
@property (weak, nonatomic) IBOutlet UILabel *lightgrayPriceLb; /**灰色价格lb*/
@property (weak, nonatomic) IBOutlet UIButton *jiesuanBtn; /**结算按钮*/

@end

@implementation YuYueSureOrderBottomView
- (void)awakeFromNib {
    [super awakeFromNib];
    
    
    //国际化
    NSString *jieSuanStr = NSLocalizedString(Order_Settlement, @"去结算");
    [self.jiesuanBtn setTitle:[NSString stringWithFormat:@"%@ >",jieSuanStr] forState:(UIControlStateNormal)];
    [self.jiesuanBtn setTitleColor:[UIColor whiteColor] forState:(UIControlStateNormal)];
    
    //2019-2-25 不要了
    self.lightgrayPriceLb.hidden = YES;
}

/**更新购物车数据*/
- (void)updateyuyueSureOrderBottomViewTotalPrice:(CGFloat)totalPrice originPrice:(CGFloat)originPrice {
    self.redPriceLb.text = [NSString stringWithFormat:@"€%.1f",totalPrice];
    self.lightgrayPriceLb.text = [NSString stringWithFormat:@"€%.1f",originPrice];
}

//
//- (void)updateyuyueSureOrderBottomViewTotalPrice:(CGFloat)totalPrice {
//
//}

//点击结算按钮
- (IBAction)clickJieSuanAction:(UIButton *)sender {
    if (self.clickJieSuanBtnBlock) {
        self.clickJieSuanBtnBlock();
    }
}

@end
